<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        form {
            border: 1px solid black;

        }

        div {
            border: 1px solid black;
        }
    </style>
    <script src="./javascripts/tools.js"></script>
</head>

<body>
    <div id="attributes_div">
        最大生命值 (max_health)<input type="text" id="max_health"><br>
        最大魔法值 (max_mana)<input type="text" id="max_mana"><br>
        力量 (strength)<input type="text" id="strength"><br>
        敏捷 (agility)<input type="text" id="agility"><br>
        智力 (intelligence)<input type="text" id="intelligence"><br>
        防御 (defense)<input type="text" id="defense"><br>
        速度 (speed)<input type="text" id="speed"><br>
        暴击率 (critical_rate)<input type="text" id="critical_rate"><br>
        闪避率 (dodge_rate)<input type="text" id="dodge_rate"><br>
        物理攻击力(attack_power)<input type="text" id="attack_power"><br>
        魔法攻击力(magic_power)<input type="text" id="magic_power"><br>
        物理防御力(physical_defense)<input type="text" id="physical_defense"><br>
        魔法防御力(magic_defense)<input type="text" id="magic_defense"><br>
        <button onclick="commit_attributes()">提交属性</button>
    </div>
    <br>
    <form action="/data/add_character" method="post" enctype="multipart/form-data">
        名称：<input type="text" name="name" placeholder="name"><br>
        称谓：<input type="text" name="title" placeholder="title"><br>
        描述：<textarea name="description"></textarea><br>
        属性：<textarea name="attributes" id="attributes"></textarea><br>
        头像：<input type="file" name="avatar" id="avatar"><br>
        动画帧：<input type="file" name="sprites" id="sprites"><br>
        <button type="submit">提交</button>
    </form>
</body>

</html>